package sisi.categories;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * Category.java - The persistent class for the <i>categorie's database table</i>. 
 * @author Pedro Gonzalez pedro@sisisoftware.it
 * @author Claudio Pelosi claudio@sisisoftware.it
 * @author SISI Software S.n.c. - www.sisisoftware.it
 * @version 1.0, 04/11/2013
 * 
 */
@Entity
@Table(name="categories")
public class Category implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="CATEGORIES_CATEGORYID_GENERATOR", sequenceName="CATEGORIESSEQ", allocationSize=1)
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="CATEGORIES_CATEGORYID_GENERATOR")
	private Integer categoryid;

	private String categoryname;

	private String description;

	private Timestamp dtup;

	/**
	 * Category.java - The persistent class for the <i>categorie's database table</i>. 
	 * @author Pedro Gonzalez pedro@sisisoftware.it
	 * @author Claudio Pelosi claudio@sisisoftware.it
	 * @author SISI Software S.n.c. - www.sisisoftware.it
	 * @version 1.0, 04/11/2013
	 * 
	 */
	public Category() {
	}

	public Integer getCategoryid() {
		return this.categoryid;
	}

	public void setCategoryid(Integer categoryid) {
		this.categoryid = categoryid;
	}

	public String getCategoryname() {
		return this.categoryname;
	}

	public void setCategoryname(String categoryname) {
		this.categoryname = categoryname;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Timestamp getDtup() {
		return this.dtup;
	}

	public void setDtup(Timestamp dtup) {
		this.dtup = dtup;
	}

}